<template >
  <panel>
    <ymy-transfer
      :data="dataList"
      :label-one="['id','名称']"
      :prop-one="['id','name']"
      :label-two="['id2','名称2']"
      :prop-two="['id','name']"
      @selectednode="selectedNode"
    ></ymy-transfer>
  </panel>
</template>

<script>
  import ymyTransfer from '@/components/business/ymyTransfer';

  export default {
    data() {
      return {
        dataList: [{
          id: '1',
          name: '王小虎'
        }, {
          id: '2',
          name: '王小虎'
        }, {
          id: '3',
          name: '王小虎'
        }, {
          id: '4',
          name: '王小虎'
        }, {
          id: '5',
          name: '王小虎'
        }, {
          id: '6',
          name: '王小虎'
        }, {
          id: '7',
          name: '王小虎'
        }]
      };
    },
    components: {ymyTransfer},
    methods: {
      selectedNode(data) {
          console.log(data);
      }
    }
  }
</script>

<style lang="scss">

</style>
